home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / sgml-base.prerm < prev    next >
Text File  |  2004-10-26  |  1KB  |  45 lines

  1. #!/bin/sh
  2. ## ----------------------------------------------------------------------
  3. ## debian/prerm : preremoval script for sgml-base
  4. ## ----------------------------------------------------------------------
  5.  
  6. ## ----------------------------------------------------------------------
  7. set -e
  8.  
  9. ## ----------------------------------------------------------------------
  10. if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]
  11. then
  12.  
  13.     ## ------------------------------------------------------------------
  14.     TRANSCAT=/etc/sgml/transitional.cat
  15.     if [ -f ${TRANSCAT} ]
  16.     then
  17.     update-catalog --remove --super ${TRANSCAT} || true
  18.     rm -f ${TRANSCAT} ${TRANSCAT}.old
  19.     fi
  20.  
  21. fi
  22.  
  23. ## ---------------------------------------------------------------------- 
  24. ## automatically generated debhelper commands
  25. # Automatically added by dh_usrlocal
  26. (
  27.     while read dir; do
  28.         rmdir "$dir" 2>/dev/null || true
  29.     done
  30. ) << DATA
  31. /usr/local/share/sgml/declaration
  32. /usr/local/share/sgml/dtd
  33. /usr/local/share/sgml/entities
  34. /usr/local/share/sgml/misc
  35. /usr/local/share/sgml/stylesheet
  36. /usr/local/share/sgml
  37. /usr/local/share
  38. DATA
  39. # End automatically added section
  40.  
  41.  
  42. exit 0
  43.  
  44. ## ----------------------------------------------------------------------
  45.